home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Joint Education Initiative
/
Joint Education Initiative.iso
/
dos
/
utils
/
pcdeclsp.doc
< prev
next >
Wrap
Text File
|
1990-07-22
|
4KB
|
55 lines
***** File DECOMP.TXT
An MS-DOS program (PCDECLSP.COM) based on the previous pixel algorithm
is included in the SOFTWARE directory. It reads the header and decompresses
the associated data file. The output is a FITS file with minimal header. A
complete FITS header can be reconstructed by using the original extension
header which carries information about the compression technique as well as
the original astrometry keywords and processing comments.
Sample FITS Header
SIMPLE = T / BASIC FITS FORMAT
BITPIX = 16 / 2-BYTE TWO'S COMPL INTEGERS
NAXIS = 2 / NUMBER OF AXES
NAXIS1 = 2048 / PIXELS PER ROW
NAXIS2 = 2048 / LINES PER IMAGE
END
If no file name is specified on the command line, the program will prompt for
one. If only one name is given on the command line, it is assumed to be the
input file, and the output file will be given the same file name except that
the extension will be set to '$$$'. If two names are given on the command
line, the first is taken as the input file, the second as the output file.
The data file is assumed to have the extension .IMQ, but this can be changed
by specifying a third file name on the command line.
EXAMPLES:
>pcdeclsp
- asks for header file name, reads data from *.IMQ, makes *.$$$ as
output
>pcdeclsp lspn1227.hdr
- reads data from LSPN0094.IMQ, makes LSPN0094.$$$ as output
>pcdeclsp lspn1227.hdr d:lspn1227.fit
- reads data from LSPN0094.IMQ, makes LSPN0094.FIT on drive D:
>pcdeclsp lspn1227.hdr d:lspn1227.fit lspn1227.dat
- reads data from LSPN0094.DAT, makes LSPN0094.FIT on drive D:
Version 1.0 written 1/90 by
A. Warnock
ST Systems Corp.
NASA/Goddard Space Flight Center
Code 681
Greenbelt, MD 20771
(301)286-3965
SPAN - STARS::WARNOCK
6168::WARNOCK
Internet - warnock@stars.gsfc.nasa.gov
warnock@[128.183.84.7]
Version 1.1, 3/90 by AW3 - saves correct input buffer length in do_data
to fix a bug in carrying a new 16-bit value
from the end of one input buffer to the
beginning of the next.